Expression Editor for WinForms | ComponentOne
C1.Win.ExpressionEditor Namespace / C1ExpressionEditor Class / AddFunction Method / AddFunction(ExpressionItem,Func<List<Object>,Object>,Int32,Int32) Method
Provides the function description for the C1ExpressionEditorPanel.
The delegate that evaluates the function.
Minimum arguments count.
Maximum arguments count.

In This Topic
    AddFunction(ExpressionItem,Func<List<Object>,Object>,Int32,Int32) Method
    In This Topic
    Added a custom function to engine of C1ExpressionEditor.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AddFunction( _
       ByVal item As ExpressionItem, _
       ByVal function As Func(Of List(Of Object),Object), _
       ByVal minArgsCount As Integer, _
       ByVal maxArgsCount As Integer _
    ) 
    public void AddFunction( 
       ExpressionItem item,
       Func<List<object>,object> function,
       int minArgsCount,
       int maxArgsCount
    )

    Parameters

    item
    Provides the function description for the C1ExpressionEditorPanel.
    function
    The delegate that evaluates the function.
    minArgsCount
    Minimum arguments count.
    maxArgsCount
    Maximum arguments count.
    See Also